/*
 * Copyright 2010 Mttang.com All right reserved. This software is the
 * confidential and proprietary information of Mttang.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Mttang.com.
 */
package com.mttang.sys.integration.dao.support;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.mttang.sys.dto.PrivilegeDTO;
import com.mttang.sys.integration.dao.PrivilegeDAO;

/**
 * 类PrivilegeDAOImpl.java的实现描述：TODO 类实现描述 
 * @author acc 2010-6-1 下午02:47:09
 */
public class PrivilegeDAOImpl extends SqlMapClientDaoSupport implements  PrivilegeDAO {

    private Log logger = LogFactory.getLog(getClass());
    /* (non-Javadoc)
     * @see com.mttang.sys.integration.dao.PrivilegeDAO#findall()
     */
    @SuppressWarnings("unchecked")
    @Override
    public List<PrivilegeDTO> findall() {
        // TODO Auto-generated method stub
        if (logger.isInfoEnabled()) {
            logger.info("---PrivilegeDAOImpl---findAll");
        }
        return getSqlMapClientTemplate().queryForList("SYS.selectPrivilege");
    }

}
